f43d0de100df53606de3af85e3f393ece333cb8e,AffdexMe/app/src/main/java/com/affectiva/affdexme/MainActivity.java,MainActivity,initializeUI,#,148
Before Change
metricPct1 = (MetricView) findViewById(R.id.metric_pct_1);
metricPct2 = (MetricView) findViewById(R.id.metric_pct_2);
metricPct3 = (MetricView) findViewById(R.id.metric_pct_3);
metricPct4 = (MetricView) findViewById(R.id.metric_pct_4);
metricPct5 = (MetricView) findViewById(R.id.metric_pct_5);
metricPct6 = (MetricView) findViewById(R.id.metric_pct_6);
fpsPct = (TextView) findViewById(R.id.fps_value);
metricName1 = (TextView) findViewById(R.id.metric_name_1);
metricName2 = (TextView) findViewById(R.id.metric_name_2);
metricName3 = (TextView) findViewById(R.id.metric_name_3);
metricName4 = (TextView) findViewById(R.id.metric_name_4);
metricName5 = (TextView) findViewById(R.id.metric_name_5);
metricName6 = (TextView) findViewById(R.id.metric_name_6);
fpsName = (TextView) findViewById(R.id.fps_name);
cameraView = (SurfaceView) findViewById(R.id.camera_preview);
drawingView = (DrawingView) findViewById(R.id.drawing_view);
settingsButton = (ImageButton) findViewById(R.id.settings_button);
//Load Application Font and set UI Elements to use it
Typeface face = Typeface.createFromAsset(getAssets(), "fonts/Square.ttf");
metricPct1.setTypeface(face);
metricPct2.setTypeface(face);
metricPct3.setTypeface(face);
metricPct4.setTypeface(face);
metricPct5.setTypeface(face);
metricPct6.setTypeface(face);
metricName1.setTypeface(face);
After Change
menuLayout = (RelativeLayout) findViewById(R.id.affdexme_menu);
smilePct = (MetricView) findViewById(R.id.smile_pct);
browRaisePct = (MetricView) findViewById(R.id.brow_raise_pct);
browFurrowPct = (MetricView) findViewById(R.id.brow_furrow_pct);
frownPct = (MetricView) findViewById(R.id.frown_pct);
valencePct = (MetricView) findViewById(R.id.valence_pct);
engagementPct = (MetricView) findViewById(R.id.engagement_pct);
fpsPct = (TextView) findViewById(R.id.fps_value);
smileName = (TextView) findViewById(R.id.smile_name);
browRaiseName = (TextView) findViewById(R.id.brow_raise_name);
browFurrowName = (TextView) findViewById(R.id.brow_furrow_name);
frownName = (TextView) findViewById(R.id.frown_name);
valenceName = (TextView) findViewById(R.id.valence_name);
engagementName = (TextView) findViewById(R.id.engagement_name);
fpsName = (TextView) findViewById(R.id.fps_name);
fpsEditText = (EditText) findViewById(R.id.fps_edittext);
fpsEditTextName = (TextView) findViewById(R.id.fps_edittext_name);
fpsCheckbox = (CheckBox) findViewById(R.id.fps_checkbox);
trackingCheckbox = (CheckBox) findViewById(R.id.tracking_checkbox);
cameraView = (SurfaceView) findViewById(R.id.camera_preview);
drawingView = (DrawingView) findViewById(R.id.drawing_view);
//Load Application Font and set UI Elements to use it
Typeface face = Typeface.createFromAsset(getAssets(), "fonts/Square.ttf");
smilePct.setTypeface(face);
browRaisePct.setTypeface(face);
browFurrowPct.setTypeface(face);
frownPct.setTypeface(face);
valencePct.setTypeface(face);
engagementPct.setTypeface(face);
smileName.setTypeface(face);
browRaiseName.setTypeface(face);
browFurrowName.setTypeface(face);
frownName.setTypeface(face);
valenceName.setTypeface(face);
engagementName.setTypeface(face);
fpsPct.setTypeface(face);
fpsName.setTypeface(face);
fpsEditTextName.setTypeface(face);